package gwtgaetools.shared.model;

import com.google.gwt.user.client.rpc.IsSerializable;


/**
 * The base class for messages in the messaging system 
 */
public abstract class GenericMessage<Type> implements IsSerializable {

	/*
	 * EXTEND THIS CLASS AND DEFINE AN ENUM!
	 * public enum Type {
    	 ADD_MESSAGE,
    	 RESET_MESSAGE
  	   }
	 */

	private Type type;

	// For GWT RPC
	@SuppressWarnings("unused")
	private 	GenericMessage() {}
	protected 	GenericMessage(Type type) 	{ this.type = type;	}
	public 		Type getType() 				{ return type;		}

}

